package com.leyou.dao.db1;

import com.leyou.domain.db1entity.Couponandactivity;
import com.leyou.domain.db1entity.Couponrecord;
import com.leyou.domain.db1entity.CouponrecordExample;
import com.leyou.domain.vo.CouponActivityInfoVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CouponrecordMapper {

    long countByExample(CouponrecordExample example);

    int deleteByExample(CouponrecordExample example);

    int deleteByPrimaryKey(String recordkey);

    int insert(Couponrecord record);

    int insertSelective(Couponrecord record);

    List<Couponrecord> selectByExample(CouponrecordExample example);

    Couponrecord selectByPrimaryKey(String recordkey);

    int updateByExampleSelective(@Param("record") Couponrecord record, @Param("example") CouponrecordExample example);

    int updateByExample(@Param("record") Couponrecord record, @Param("example") CouponrecordExample example);

    int updateByPrimaryKeySelective(Couponrecord record);

    int updateByPrimaryKey(Couponrecord record);


    CouponActivityInfoVO getCouponActivityInfo(String activityKey);


    int updateCouponActivityCount(@Param("activityKey") String activityKey, @Param("count") int count);

    int updateCouponAndActivityCount(@Param("activitykey")String activitykey, @Param("list") List<Couponandactivity> couponandactivityList);

    int putCouponRecord(@Param("list") List<Couponrecord> couponrecordList);







}
